package BinaryTree;

class BinaryTreeNode<T> {
    private T data;
    public BinaryTreeNode<T> lChild;
    public BinaryTreeNode<T> rChild;

    public BinaryTreeNode() {
        data = null;
        lChild = null;
        rChild = null;
    }

    public BinaryTreeNode(T elem) {
        data = elem;
        lChild = null;
        rChild = null;
    }

    public T getData() {
        return data;
    }

    public void setData(T y) {
        data = y;
    }
}
